#include <iostream>
#include "UdpServer.hpp"
#include <memory>
#include "Log.hpp"
int main(int argv, const char *argc[])
{

    if (argv != 2)
    {
        std::cout << "place using: udpclient -server_port" << std::endl;
        exit(ARGV_ERROR);
    }
    u_int16_t port = (std::stoi(argc[1]));

    EnableScreen();
    std::unique_ptr<udpserver> udpsptr = std::make_unique<udpserver>(port);

    udpsptr->InitServer();
    udpsptr->Start();

    return 0;
}